package iot.wlink.network.payload.up;

import iot.wlink.network.devices.enums.ProtocolsTypeEm;
import iot.wlink.network.payload.IdentityPayload;
import lombok.Data;

import java.util.Date;
import java.util.List;
import java.util.Map;

/**
 * @author : willian fu
 * @date : 2021/8/20
 * 设备上报的数据
 */
@Data
public class ReportPayload extends IdentityPayload implements UpPayload {

    //模板ID
    private Long tid;

    private ProtocolsTypeEm protocolsType;

    //设备数据，低功耗设备可一次上报多个
    private Map<String, List<PointValue>> payload;

    //上报时间，设备可不传
    private Date time;
}
